package com.reliable.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.reliable.service.domain.ReliableSessionIpDetail;
import com.reliable.service.domain.ReliableSessionIpOccurrences;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会话中IP出现记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-11-10
 */
@Mapper
public interface ReliableSessionIpOccurrencesMapper extends BaseMapper<ReliableSessionIpOccurrences> {

    void upsert(ReliableSessionIpOccurrences record);

    /**
     * 根据条件查询会话IP详细信息列表
     * 
     * @param sessionId 会话ID
     * @param ip IP地址
     * @param city 城市
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @return 会话IP详细信息列表
     */
    List<ReliableSessionIpDetail> selectSessionIpDetailList(@Param("sessionId") String sessionId,
                                                            @Param("ip") String ip,
                                                            @Param("city") String city,
                                                            @Param("startTime") String startTime,
                                                            @Param("endTime") String endTime,
                                                            @Param("pageNum") Integer pageNum,
                                                            @Param("pageSize") Integer pageSize);
}